package 对象之封装.复习;


import java.util.Random;
import java.util.Scanner;

public class text {
    public static void main(String[] args) {

        Random r = new Random();
        int b = r.nextInt(100);
        System.out.println(b);

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        int a = sc.nextInt();
        System.out.println(a);
//三种数组的定义
        int[] e = new int[3];
        int[] d = new int[]{1, 2, 3, 4};
        int[] c = {1, 23, 4, 5};
        System.out.println(e.length);
        System.out.println(d.length);
        System.out.println(c.length);

        //方法的调用
        sum(10, 10.00);

    }

    public static void sum(int a, double b) {
        System.out.println(a + b);
    }
}